package com.qst.crop.service;

import com.github.pagehelper.PageInfo;
import com.qst.crop.entity.Expert;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import java.util.List;

/**
 * (Expert)表服务接口
 *
 * @author Wlj
 * @since 2025-09-02 15:28:32
 */
public interface ExpertService {

    void insert(Expert record);
    void delete(String type);
    Expert selectById(String type);

    void updateById(Expert record);

    // 新增：PageHelper 分页与条件
    PageInfo<Expert> findExpertPage(Integer pageNum);

    PageInfo<Expert> findExpertByKeys(String keys, Integer pageNum);

    List<Expert> selectAllExpert();

    Expert detail(String userName);
}
